package com.ynwt.test;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * Created by huangying on 2017/5/24.
 */
@Component
@Scope("prototype")
public class OneThread extends Thread {

    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("OneThread.hashCode = " + this.hashCode());;
    }
}
